/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.loveprog.core.services.impl;

import br.com.loveprog.core.services.CoreService;
import br.com.loveprog.modelo.Usuario;
import br.com.loveprog.service.UsuarioService;

/**
 *
 * @author Leandro
 */
public class CoreServiceImpl implements CoreService {

    private static CoreService _instance;

    private CoreServiceImpl() {
        super();
    }

    public static CoreService getInstance() {

        if (_instance == null) {
            synchronized (CoreServiceImpl.class) {
                if (_instance == null) {
                    _instance = new CoreServiceImpl();
                }
            }
        }
        return _instance;
    }

    @Override
    public Usuario validaUsuario(String login, String senha) {
        final Usuario result = new UsuarioService().validarUsuarioLogin(login, senha);
        return result;
    }
}
